﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="MonthPlanAddAdmin.aspx.cs"
    Inherits="Month_MonthPlanAddAdmin" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>月计划添加用于admin</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
         
            function department(str)
            {
                window.open('../WebCommon/Department.aspx?SID=' + str, '', 'width=700,height=580,top=200, left=300'); 
            }
        
       
    </script>

    <script type="text/javascript" language="javascript">
        function userinfo(str)
            {
                window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300'); 
            }
    </script>

    <script type="text/javascript" language="javascript">
        function slavedepartment(str)
            {
                window.open('../WebCommon/DepartmentSlave.aspx?SID=' + str, '', 'width=700,height=580,top=80, left=250'); 
            }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
        </asp:ScriptManager>
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="980px">
                <tr>
                    <td class="firstbjcolor" style="height: 14px;">
                        <span class="currentHere">当前位置:月计划管理-&gt;添加月计划</span></td>
                </tr>
                <tr>
                    <td style="height: 1; width: 980px;">
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="background-image: url(../images/secondRow.gif); background-repeat: repeat-x;
                        height: 30px;">
                        部门:<asp:DropDownList ID="drpDepartment" runat="server" SkinID="dropdownlistSkin">
                        </asp:DropDownList>发起人:<input id="txtSponsor" runat="server" style="width: 55px"
                            type="text" readonly="readOnly" /><a href="#" onclick="javascript:userinfo('txtSponsor');"><input
                                id="Button1" type="button" value="..." /></a>年份:<asp:DropDownList ID="drpYear" runat="server"
                                    AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged" SkinID="dropdownlistSkin">
                                </asp:DropDownList>年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True"
                                    OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged" SkinID="dropdownlistSkin">
                                </asp:DropDownList>月周期:<asp:DropDownList ID="drpMonthDate" runat="server" AutoPostBack="True"
                                    OnSelectedIndexChanged="drpMonthDate_SelectedIndexChanged" SkinID="dropdownlistSkin">
                                </asp:DropDownList>
                        <asp:CheckBox ID="ckbAllSelect" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="ckbAllSelect_CheckedChanged"
                            SkinID="checkboxSkin" />
                        <asp:Button ID="btnSave" runat="server" Text="保存待发" OnClick="btnSave_Click" SkinID="buttonSkin"
                            Width="60px" />
                        <asp:Button ID="btnOk" runat="server" Text="立即提交" OnClick="btnOk_Click" SkinID="buttonSkin"
                            Width="60px" OnClientClick="return confirm('确认要提交吗？');" /></td>
                </tr>
                <tr>
                    <td colspan="8">
                        <asp:GridView ID="gdvMonthPlan" runat="server" AutoGenerateColumns="False" Width="980px"
                            DataKeyNames="MonthPlanId" SkinID="gridviewSkin">
                            <Columns>
                                <asp:TemplateField HeaderText="选择">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="30px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="30px" HorizontalAlign="Center" Wrap="False" VerticalAlign="Middle" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="MonthPlanSortId" HeaderText="计划编号">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CompleteTime" HeaderText="完成时间">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="181px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="181px" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="PlanStep" HeaderText="实施步骤">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="125px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="125px" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Source" HeaderText="计划来源">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="75px" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                    <HeaderStyle Width="89px" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="89px" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                    <HeaderStyle Width="89px" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="89px" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="89px" Wrap="False" />
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="89px" Wrap="True" />
                                </asp:BoundField>
                                <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                    <HeaderStyle Width="90px" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="90px" HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Remart" HeaderText="备注">
                                    <HeaderStyle Width="91px" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="91px" HorizontalAlign="Left" VerticalAlign="Middle" Wrap="True" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="操作">
                                    <ItemTemplate>
                                        <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" SkinID="buttonSkin"
                                            OnClientClick="return confirm('确认要删除吗？');" />
                                    </ItemTemplate>
                                    <HeaderStyle Wrap="False" Width="45px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <ItemStyle Width="45px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="MonthPlanId" HeaderText="id" Visible="False"></asp:BoundField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="8">
                        <table cellpadding="0" cellspacing="1" style="background-color: #d0d0ce;" border="0"
                            width="980px">
                            <tr style="height: 50px; background-color: #ffffff;">
                                <td style="width: 35px">
                                    <input id="Hidden1" style="width: 28px" type="hidden" /></td>
                                <td style="width: 35px" valign="middle">
                                    <input id="txtMonthPlanSortId" runat="server" style="width: 23px;" type="text" value="1" />
                                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="txtMonthPlanSortId"
                                        Display="Dynamic" ErrorMessage="计划编号只能为整数" Operator="DataTypeCheck" Type="Integer"
                                        Width="0px"></asp:CompareValidator></td>
                                <td valign="middle" align="center" style="width: 73px">
                                    <asp:TextBox ID="txtCompleteTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" Width="65px" SkinID="textboxSkin"></asp:TextBox><asp:CompareValidator
                                        ID="CompareValidator2" runat="server" ControlToValidate="txtCompleteTime" Display="Dynamic"
                                        ErrorMessage="日期类型不正确" Operator="DataTypeCheck" Type="Date" Width="0px"></asp:CompareValidator> 
                                </td>
                                <td valign="middle" align="center" style="width: 165px">
                                    <asp:TextBox ID="txtWorkItem" runat="server" TextMode="MultiLine" Width="150px" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td align="center" style="width: 125px" valign="middle">
                                    <asp:TextBox ID="txtPlanStep" runat="server" SkinID="textboxMultiLineSkin" TextMode="MultiLine"
                                        Width="120px"></asp:TextBox></td>
                                <td valign="middle" align="center" style="width: 73px">
                                    <asp:DropDownList ID="drpSource" runat="server" Width="70px">
                                        <asp:ListItem Value="新增">新增</asp:ListItem>
                                        <asp:ListItem>内部合作协议</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td valign="middle" align="center" style="width: 87px">
                                    <input id="txtMasterPeople" type="text" runat="server" style="width: 50px;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo('txtMasterPeople');"><img alt="" style="vertical-align: bottom" src="../images/addpages.jpg"
                                            border="0" /></a></td>
                                <td valign="middle" align="center" style="width: 86px">
                                    <input id="txtSlaveDepartment" type="text" runat="server" style="width: 50px;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:slavedepartment('txtSlaveDepartment');"><img style="vertical-align: bottom" alt=""
                                            src="../images/addpages.jpg" border="0" /></a></td> 
                                <td valign="middle" align="center" style="width: 86px">
                                    <asp:TextBox ID="txtSlaveDepartmentDuty" runat="server" TextMode="MultiLine" Width="80px"
                                        SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td valign="middle" style="width: 86px" align="center">
                                    <input id="txtEvaluatePeople" type="text" runat="server" style="width: 50px;" readonly="readOnly" /><a
                                        href="#" onclick="javascript:userinfo('txtEvaluatePeople');"><img alt="" style="vertical-align: bottom" src="../images/addpages.jpg"
                                            border="0" /></a></td>
                                <td valign="middle" style="width: 84px" align="center">
                                    <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="83px" SkinID="textboxMultiLineSkin"></asp:TextBox></td>
                                <td style="width: 49px" valign="middle">
                                    <asp:Button ID="btnAdd" runat="server" Width="30px" Text="添加" OnClick="btnAdd_Click"
                                        SkinID="buttonSkin" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td colspan="8" style="text-align: center">
                        工作提醒</td>
                </tr>
                <tr>
                    <td>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <table cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td>
                                            <asp:GridView ID="gdvMonthRemind" runat="server" AutoGenerateColumns="False" SkinID="gridviewSkin"
                                                Width="884px">
                                                <Columns>
                                                    <asp:BoundField DataField="RemindId" HeaderText="计划编号">
                                                        <ItemStyle Width="40px" />
                                                        <HeaderStyle Width="40px" />
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="TheMonthRemind" HeaderText="本月工作提醒">
                                                        <ItemStyle Width="800px" Wrap="True" />
                                                        <HeaderStyle Width="800px" Wrap="True" />
                                                    </asp:BoundField>
                                                    <asp:TemplateField HeaderText="删除">
                                                        <ItemTemplate>
                                                            <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="删除" SkinID="buttonSkin" />
                                                        </ItemTemplate>
                                                        <ItemStyle Width="30px" />
                                                        <HeaderStyle Width="30px" />
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table border="0" cellpadding="0" cellspacing="0" width="884">
                                                <tr>
                                                    <td style="width: 87px">
                                                        本月工作提醒 :
                                                    </td>
                                                    <td>
                                                        <asp:TextBox ID="txtTheMonthRemind" runat="server" SkinID="textboxMultiLineSkin"
                                                            TextMode="MultiLine" Width="780px"></asp:TextBox></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 87px">
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                        <asp:Button ID="btntijiao" runat="server" OnClick="btntijiao_Click" SkinID="buttonSkin"
                                                            Text="提交" /><asp:Button ID="btnchongzhi" runat="server" SkinID="buttonSkin" Text="重置" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
